package org.lzy.aibg.controller;
import org.lzy.aibg.pojo.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/user")
public class UserController {
    @GetMapping("/getUser")
    public User getUser(){
        User user = new User();
        user.setUsername("mbh");
        user.setPassword("123456");
        user.setAge(18);
        user.setSex("male");
        return user;
    }
}